/**
 * https://www.babeljs.cn/docs/babel-register
 * https://babeljs.io/docs/en/babel-preset-react#via-node-api
 */
require('@babel/register')({
    presets: ['@babel/preset-env','@babel/preset-react']
})
const express = require('express')
const appRouter = require('./appRouter')
const app = express()

app.use('/build', express.static('build'))
app.use('/', appRouter)

app.listen(3000, () => {
    console.log('Example app listen on port 3000!')
})